import api from "@/api";
import { PORT } from "../config/servicePort";

/**
 * 获取banner列表
 */
export const getBannerList = (params?: any) => api.get(`${PORT}/banners/getList`, params);

/**
 * 新增编辑banner
 */

export const addBanner = (data?: any) => api.post(`${PORT}/Banners/add`, data);

/**
 * 获取入口列表
 */
export const getEntryList = (params?: any) => api.get(`${PORT}/Menus/getList`, params);

/**
 * 保存入口列表
 */

export const saveEntryList = (data?: any) => api.post(`${PORT}/Menus/add`, data);

/**
 * 获取个人中心banner列表
 */
export const getMeBannerList = (params?: any) => api.get(`${PORT}/UserCenterBanners/getList?page=1&limit=10`, params);

/**
 * 新增编辑个人中心banner
 */

export const addMeBanner = (data?: any) => api.post(`${PORT}/UserCenterBanners/add`, data);
